/*
 * AgentUtils.h
 *
 *  Created on: Jan 26, 2009
 *      Author: Andrzej Olchawa
 *      mailto: andrzejolchawa@gmail.com
 *      http://www.hardtechnology.org
 *      This is a part of the Armazd project, which is covered by
 *      GNU GPL v2 license.
 */

#ifndef AGENTUTILS_H_
#define AGENTUTILS_H_

/* Include section */
#include <string>
#include <iostream>
#include <sstream>
#include "AgentException.h"
#include "AgentDefinitions.h"
#include "AgentConfiguration.h"
#include "HTFramework/HTStringUtilities.h"
#include "HTFramework/HTConverter.h"

/* namespace declaration */
using namespace std;

/* AgentUtils class definition */
class AgentUtils
{

public:

	/* Constructors and destructor */
	AgentUtils();
	virtual ~AgentUtils();

	/* Functions related with configuration identifying */
	static int extractSensorInfoFromConfigLine(string &, int &, const string &, const int &);
	static int extractDestinationsInfoFromConfigLine(string &, int &, const string &, const int &);
	static int extractListenersInfoFromConfigLine(string &, int &, const string &, const int &);
	static int getListenerType(string);
	static string getListenerType(int);
};

#endif /* AGENTUTILS_H_ */
